package utility.file.writefile.MultiFileWriter;

import java.io.FileWriter;
import java.io.IOException;

public class MyFileWriter {

	public MyFileWriter(String dir) {
	//	super(dir);
	}

	public static void writeLine(String fileName, String line, boolean a) {
		FileWriter fw = null;

		try {
			fw = new FileWriter(fileName, a);
			fw.write(line + "\n");
		} catch (Exception e) {
			if (fw != null)
				try {
					fw.close();
				} catch (IOException e1) {
					e1.printStackTrace();
				}
		}

	}

}
